package nave.android.game;
import java.awt.Rectangle;
import java.awt.geom.Point2D;

import nave.android.framework.Graphics;

public class Cipo extends GameObject
{
	boolean Sobe_e_Desce; 
	Rectangle CipoRectangle;
	
	
	public Cipo(Asset imagem, Point2D posicao, Point2D tamanho)
	{
		super(imagem, posicao, tamanho);
		CipoRectangle = new Rectangle ((int)posicao.getX(), (int)posicao.getY(), (int)tamanho.getX(), (int)tamanho.getY());
	}

	public void Update()
	{	
		
		
		if(EscadaRectangle.intersects(playerRect))
		{
			Sobe_e_Desce = true;
		}	
		
	}
	
	public void Draw(Graphics g)
	{
		g.drawPixmap(imagem, (int)posicao.getX(), (int)posicao.getY());
	}

}

